package cn.topcodes.tcsf.app.web.controller.api.protocol;

import cn.topcode.unicorn.utils.In;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

/**
 * Created by Unicorn on 2018/1/16.
 */
@Data
public class SendFindPwdVerify {

    /**
     * 邮箱验证
     */
    public static final String WAY_EMAIL = "Email";

    /**
     * 短信验证
     */
    public static final String WAY_SMS = "SMS";

    @NotBlank(message = "Username can not be blank")
    private String username;

    @NotBlank(message = "Please enter a verification method")
    @In(values = {WAY_EMAIL, WAY_SMS}, message = "Verification method only supports email and SMS")
    private String way;
}
